package com.haierCamera.customapplication.ui.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;

/**
 * Created by AdministratorZJ
 * on 2019/12/4.
 */
public class MyMiBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        int bager = intent.getIntExtra("bager", -1);
        if (bager == -1) {
            return;
        }
        new Handler().postDelayed(() -> {
            //BadgeUtil.setBadgeCount(context, bager, R.mipmap.ic_launcher);
            Log.i("TAG11", "MyMiBroadcastReceiver:" + bager + "----------2");
        },500);

    }
}
